<!--
 * @Author: your name
 * @Date: 2021-09-16 10:26:07
 * @LastEditTime: 2021-09-16 10:28:34
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \briup\6-jQuery\day05\9-地理位置api.html
-->
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>地理位置api</title>
    <script>
        //webapi h5api
        navigator.geolocation.getCurrentPosition(function(position) {
            console.log(position);
        })
    </script>
</head>

<body>

</body>

</html>